package com.online.customerchatserver.service;

import com.online.customerchatserver.service.impl.ApiImageUploadServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by littleheng on 2018/5/4
 */
@FeignClient(value = "ols-root-server",fallback = ApiImageUploadServiceImpl.class)
public interface ApiImageUploadService {

    @RequestMapping(value = "/image/upload", method = RequestMethod.POST)
    Map upload(HttpServletRequest request);

    @RequestMapping(value = "/image/uploadFromWeChat", method = RequestMethod.POST)
    Map uploadFromWeChat(@RequestBody Map map);
}
